package com.dolphin.fly.service.system.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.dolphin.fly.domain.entity.system.User;
import com.dolphin.fly.domain.repository.system.UserDao;
import com.dolphin.fly.service.system.BaseService;
import com.dolphin.fly.service.system.UserService;

@Component
public class UserServiceImpl extends BaseService<User, Long> implements UserService
{
    @Autowired
    private UserDao userDao;
    
    @Override
    public User findById(Long id)
    {
        return userDao.findOne(id);
    }
    
    @Override
    public User findUserByLoginName(String loginName)
    {
        return userDao.findByLoginName(loginName);
    }
    
}
